﻿namespace Digitalmes.Application.Sys.Users.Commands;

internal sealed class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>
{
    public CreateUserCommandValidator()
    {
        RuleFor(v => v.User.UserName).MaximumLength(64).NotEmpty();
        RuleFor(v => v.User.Password).MaximumLength(128).NotEmpty();
        RuleFor(v => v.User.Nickname).MaximumLength(64).NotEmpty();
        RuleFor(v => v.User.Description).MaximumLength(128);
    }
}
